package o;

import android.os.Bundle;
import o.dio.c;

public class dym extends dyl {
    private static Class<? extends dyl> ˋ;

    static class e implements c {
        private dyt ॱ;

        public e(dyt o_dyt) {
            this.ॱ = o_dyt;
        }

        public void ॱ(boolean z) {
            if (!this.ॱ.ˊ().isFinishing()) {
                if (z) {
                    this.ॱ.ˋ();
                } else {
                    this.ॱ.ʻ();
                }
            }
        }
    }

    public static dyx ॱ() {
        if (ˋ == null) {
            return new dym();
        }
        try {
            return (dyx) ˋ.newInstance();
        } catch (InstantiationException e) {
            Logger.e("DefaultProtocolPolicy", "can not instance class:" + ˋ);
            return new dym();
        } catch (IllegalAccessException e2) {
            Logger.e("DefaultProtocolPolicy", "can not instance class:" + ˋ);
            return new dym();
        }
    }

    public static void ˊ(Class<? extends dyl> cls) {
        ˋ = cls;
    }

    public boolean ˏ(boolean z) {
        return z;
    }

    public void ˎ(dyt o_dyt, Bundle bundle) {
    }

    public void ॱ(dyt o_dyt, Bundle bundle) {
    }

    public void ˎ(dyt o_dyt, boolean z) {
        diu ˊ = diu.ˊ();
        if (ˊ.ˎ()) {
            o_dyt.ˋ();
            return;
        }
        o_dyt.am_();
        ˊ.ˏ(o_dyt.ˊ(), new e(o_dyt));
    }

    public void ˋ(dyt o_dyt) {
    }
}
